package com.qk.mangement.controller;

import com.qk.common.PageResult;
import com.qk.common.Result;
import com.qk.dto.operatelog.OperateLogDTO;
import com.qk.mangement.service.OperateLogService;
import com.qk.vo.operatelog.OperateLogVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Date:2025/10/17
 * Author:zxc
 * Description
 */
@Slf4j
@RestController
@RequestMapping("/logs")
public class OperateLogController {


    @Autowired
    private OperateLogService operateLogService;

    @GetMapping
    public Result queryListByPage(OperateLogDTO operateLogDTO) {
        log.info("日志列表查询参数:{}", operateLogDTO);
        PageResult<OperateLogVO> queryListByPageVo = operateLogService.queryListByPage(operateLogDTO);
        return Result.success(queryListByPageVo);
    }
}
